package com.xiaoxi.factroymethodmode.factory;

import com.xiaoxi.factroymethodmode.product.Product;

/**
 * @ClassName Factory
 * @Description
 * @Author xiaoxi
 * @Date 2023/3/9 22:37
 * @Version 1.0
 */
public abstract class Factory implements BaseFactory {

    public final Product create(String productName) {
        Product product = createProduct(productName);
        registerProduct(product);
        return product;
    }

}
